{template header}

<div class="midder">
<div class="mc">

<div class="bbox">
<div class="bc onecate">
<ul>
<li><a href="{tsUrl('study')}">首页</a></li>
{loop $arrOneCate $key $item}
<li>
<a {if $item['cateid']==$strStudy['cateid']}class="select"{/if} href="{tsUrl('study','cate',array('id'=>$item['cateid']))}"> {$item['catename']}</a>
</li>
{/loop}
<li><a href="{tsUrl('study','create')}">创建课程</a></li>
</ul>
</div>
</div>

<div class="kcinfo flat"> 

<h1>
<a href="{tsUrl('study','show',array('id'=>$strStudy['studyid']))}">{$strStudy[studyname]}</a>          
</h1>
</div>

<div class="bbox">

{template edit_menu}

<div class="bc">
<form id="lesson-form" class="dform lesson-form" method="POST" action="{SITE_URL}index.php?app=study&ac=add&ts=do" onsubmit="return newTopicFrom(this)"  enctype="multipart/form-data">


<table class="commtable">

<tr><th>课时排序：</th><td><input name="orderid" value="{$orderid}" /></td></tr>

<tr><th>课时标题：</th><td><input type="text" name="title" style="width:600px;padding:5px 0;" /></td></tr>
<tr><th>课时介绍：</th><td>

 <div id="tseditor"></div>
 <div style="display: none;">
  <textarea name="content"></textarea>
 </div>
 <!--<textarea name="content" id="tseditor"></textarea>-->

</td></tr>

{if $strStudy['price']}
<tr><th>课时价格：</th><td>

<input type="radio" name="price" value="1" checked />收费 
<input type="radio" name="price" value="0" />免费
  
 (选择免费本课时将免费开放，收费包含在课程中一次性买断)
</td></tr>
{/if}


<tr><th>选择视频：</th><td>

<select name="videoid">
<option value="0">选择视频</option>
{loop $arrVideo $key $item}
<option value="{$item['videoid']}">{$item['title']}</option>
{/loop}
</select>
 (<a href="{tsUrl('study','edit',array('ts'=>'video','studyid'=>$strStudy['studyid']))}">没有视频？</a>)
</td></tr>


<tr><th></th><td>
<input type="hidden" name="studyid" value="{$strStudy['studyid']}" />   
<input type="hidden" name="orderid" value="{$orderid}" />   
<button type="submit" class="btn btn-success fr mrm">保存</button>
<a href="{tsUrl('study','show',array('id'=>$strStudy[studyid]))}" class="btn">取消</a>
</td></tr>

</table>





</form>
</div>
</div>



</div>
</div>
{php doAction('tseditor')}
{template footer}